Fix an out-of-bounds memory access in xc_ptrace.c.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 12 May 2006 14:47:25 +0000 (15:47 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 12 May 2006 14:47:25 +0000 (15:47 +0100)
commit6ca3eb330819ef5e86e45171f255700aee5ffac1
treec99e57d8b3144aaf86e9ec83e22138f01f08e2df
parent3e3fe8486de04ce4e5ad8f8f37c0ab51256a787e
Fix an out-of-bounds memory access in xc_ptrace.c.

Currently, Xen always copies the entire 512 byte extended
FPU state (fxsave) even if only the "regular" FPU state was
requested.

This breaks since the memory buffer allocated in
linux-xen-low.c:regsets_fetch_inferior_registers() is only large
enough to hold the "plain" FPU registers.

Signed-Off-By: Simon Kagstrom <simon.kagstrom@bth.se>
tools/libxc/xc_ptrace.c